From: Florian Müllner Date: Fri, 1 Mar 2013 17:14:33 +0000 (+0100) Subject: overview: Use the new main actor in show/hide transitions X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4612 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b9dcbd9d33a4bbe406475c6a8c7b4e8362b9b6aa;p=gnome-shell.git overview: Use the new main actor in show/hide transitions Commit 43ed66cf266bbd changed the toplevel overview actor, so it makes sense to change the show/hide transitions to use that instead of the existing group, to avoid elements layered on top of the group being excluded from the transitions. --- diff --git a/js/ui/overview.js b/js/ui/overview.js index 1f8f0d14a..1b54a084a 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -153,7 +153,7 @@ const Overview = new Lang.Class({ this._overview.add_actor(this._coverPane); this._coverPane.connect('event', Lang.bind(this, function (actor, event) { return true; })); - this._overview.hide(); + this._stack.hide(); this._stack.add_actor(this._overview); global.overlay_group.add_actor(this._stack); @@ -538,12 +538,12 @@ const Overview = new Lang.Class({ Meta.disable_unredirect_for_screen(global.screen); global.window_group.hide(); global.top_window_group.hide(); - this._overview.show(); + this._stack.show(); this._backgroundGroup.show(); this._viewSelector.show(); - this._overview.opacity = 0; - Tweener.addTween(this._overview, + this._stack.opacity = 0; + Tweener.addTween(this._stack, { opacity: 255, transition: 'easeOutQuad', time: ANIMATION_TIME, @@ -665,7 +665,7 @@ const Overview = new Lang.Class({ this._viewSelector.zoomFromOverview(); // Make other elements fade out. - Tweener.addTween(this._overview, + Tweener.addTween(this._stack, { opacity: 0, transition: 'easeOutQuad', time: ANIMATION_TIME, @@ -703,7 +703,7 @@ const Overview = new Lang.Class({ this._viewSelector.hide(); this._desktopFade.hide(); this._backgroundGroup.hide(); - this._overview.hide(); + this._stack.hide(); this.visible = false; this.animationInProgress = false;